package com.example.springbootdemo.po;

import com.fasterxml.jackson.annotation.JsonBackReference;

import javax.xml.crypto.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Dept implements Serializable {
    private Integer deptNo;
    private String deptName;
    private String deptremark;
    private Date buildDate=new Date();
    private Double deptFee = 3098.89;


    public Date getBuildDate() {
        return buildDate;
    }

    public void setBuildDate(Date buildDate) {
        this.buildDate = buildDate;
    }

    public Double getDeptFee() {
        return deptFee;
    }

    public void setDeptFee(Double deptFee) {
        this.deptFee = deptFee;
    }
    @JsonBackReference
    private List<Emp> emps=new ArrayList<Emp>();//集合属性 多个员工

    public Integer getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(Integer deptNo) {
        this.deptNo = deptNo;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptremark() {
        return deptremark;
    }

    public void setDeptremark(String deptremark) {
        this.deptremark = deptremark;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptNo=" + deptNo +
                ", deptName='" + deptName + '\'' +
                ", deptremark='" + deptremark + '\'' +
                '}';
    }

    public List<Emp> getEmps() {
        return emps;
    }

    public void setEmps(List<Emp> emps) {
        this.emps = emps;
    }
}